import streamlit as st
from admin_page import render_admin_page
from student_page import render_student_page

def main():
    st.set_page_config(
        page_title="基于RAG的智能课程推荐系统",
        page_icon="📚",
        layout="wide"
    )
    
    # 侧边栏导航
    st.sidebar.title("导航")
    page = st.sidebar.radio(
        "选择页面",
        ["学生界面", "管理员界面"]
    )
    
    # 根据选择渲染对应页面
    if page == "学生界面":
        render_student_page()
    else:
        render_admin_page()

if __name__ == "__main__":
    main() 